import request from '@/utils/request'

export function statUser(query) {
  return request({
    url: '/stat/user',
    method: 'get',
    params: query
  })
}

export function statOrder(query) {
  return request({
    url: '/stat/order',
    method: 'get',
    params: query
  })
}

export function statGoods(query) {
  return request({
    url: '/stat/goods',
    method: 'get',
    params: query
  })
}

export function statGrouponsByActivityId(activityId) {
  return request({
    url: '/stat/grouponsByActivityId',
    method: 'get',
    params: { activityId }
  })
}

export function statStatisticsByActivityId(activityId) {
  return request({
    url: '/stat/statStatisticsByActivityId',
    method: 'get',
    params: { activityId }
  })
}

export function statOrderByActivityId(activityId) {
  return request({
    url: '/stat/statOrderByActivityId',
    method: 'get',
    params: { activityId }
  })
}

export function statActivityStatisticsByFunc(query) {
  return request({
    url: '/stat/statActivityStatisticsByFunc',
    method: 'get',
    params: query
  })
}

export function statActivityOrderByFunc(query) {
  return request({
    url: '/stat/statActivityOrderByFunc',
    method: 'get',
    params: query
  })
}

